package com.windward.vii.domain.user;

import com.alibaba.fastjson.JSON;
import com.windward.vii.dao.entity.Device;

import java.io.Serializable;

public class SignParam implements Serializable {

    // 登录类型，0：手机，1：微信，2：QQ
    private Integer thirdType;

    // 手机登录参数
    private String mobile;
    private String verifyCode;

    // 微信登录参数
    private String wxAuthCode;

    // QQ登录参数
    private String qqAccessToken;
    private String qqOpenId;

    // 设备信息
    private Device device;

    public Integer getThirdType() {
        return thirdType;
    }

    public void setThirdType(Integer thirdType) {
        this.thirdType = thirdType;
    }

    public String getMobile() {
        return mobile;
    }

    public void setMobile(String mobile) {
        this.mobile = mobile;
    }

    public String getVerifyCode() {
        return verifyCode;
    }

    public void setVerifyCode(String verifyCode) {
        this.verifyCode = verifyCode;
    }

    public String getWxAuthCode() {
        return wxAuthCode;
    }

    public void setWxAuthCode(String wxAuthCode) {
        this.wxAuthCode = wxAuthCode;
    }

    public String getQqAccessToken() {
        return qqAccessToken;
    }

    public void setQqAccessToken(String qqAccessToken) {
        this.qqAccessToken = qqAccessToken;
    }

    public String getQqOpenId() {
        return qqOpenId;
    }

    public void setQqOpenId(String qqOpenId) {
        this.qqOpenId = qqOpenId;
    }

    public Device getDevice() {
        return device;
    }

    public void setDevice(Device device) {
        this.device = device;
    }

    @Override
    public String toString() {
        return JSON.toJSONString(this);
    }
}
